<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>BDChatViewController Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">bytedesk-ui </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">bytedesk.com</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/dealWithRequestThreadResult:">- dealWithRequestThreadResult:</option>
		
		<option value="//api/name/initWithAgentUid:withTitle:withPush:">- initWithAgentUid:withTitle:withPush:</option>
		
		<option value="//api/name/initWithContactModel:withPush:">- initWithContactModel:withPush:</option>
		
		<option value="//api/name/initWithGroupModel:withPush:">- initWithGroupModel:withPush:</option>
		
		<option value="//api/name/initWithThreadModel:withPush:">- initWithThreadModel:withPush:</option>
		
		<option value="//api/name/initWithWorkGroupWid:withTitle:withPush:">- initWithWorkGroupWid:withTitle:withPush:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">BDChatViewController Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>QMUICommonTableViewController</td>
</tr><tr>
	<th>Declared in</th>
	<td>BDChatViewController.h<br />BDChatViewController.m</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/initWithWorkGroupWid:withTitle:withPush:" title="initWithWorkGroupWid:withTitle:withPush:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithWorkGroupWid:withTitle:withPush:">&ndash;&nbsp;initWithWorkGroupWid:withTitle:withPush:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>工作组会话</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)initWithWorkGroupWid:(NSString *)<em>wId</em> withTitle:(NSString *)<em>title</em> withPush:(BOOL)<em>isPush</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>wId</code></th>
						<td><p>&lt;#wId description#></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>title</code></th>
						<td><p>&lt;#title description#></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>isPush</code></th>
						<td><p>&lt;#isPush description#></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>工作组会话</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BDChatViewController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithAgentUid:withTitle:withPush:" title="initWithAgentUid:withTitle:withPush:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithAgentUid:withTitle:withPush:">&ndash;&nbsp;initWithAgentUid:withTitle:withPush:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>指定坐席会话</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)initWithAgentUid:(NSString *)<em>uId</em> withTitle:(NSString *)<em>title</em> withPush:(BOOL)<em>isPush</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>uId</code></th>
						<td><p>&lt;#uId description#></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>title</code></th>
						<td><p>&lt;#title description#></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>isPush</code></th>
						<td><p>&lt;#isPush description#></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>指定坐席会话</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BDChatViewController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/dealWithRequestThreadResult:" title="dealWithRequestThreadResult:"></a>
	<h3 class="method-title"><code><a href="#//api/name/dealWithRequestThreadResult:">&ndash;&nbsp;dealWithRequestThreadResult:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>返回结果代码：</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)dealWithRequestThreadResult:(NSDictionary *)<em>dict</em></code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>返回结果代码：</p>

<p>200：请求会话成功-创建新会话
201：请求会话成功-继续进行中会话
202：请求会话成功-排队中
203：请求会话成功-当前非工作时间，请自助查询或留言
204：请求会话成功-当前无客服在线，请自助查询或留言</p>

<p>-1: 请求会话失败-access token无效
-2：请求会话失败-wId不存在</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BDChatViewController.m</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithThreadModel:withPush:" title="initWithThreadModel:withPush:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithThreadModel:withPush:">&ndash;&nbsp;initWithThreadModel:withPush:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>从会话列表进入：访客会话、联系人会话、群组会话</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)initWithThreadModel:(BDThreadModel *)<em>threadModel</em> withPush:(BOOL)<em>isPush</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>threadModel</code></th>
						<td><p>&lt;#threadModel description#></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>isPush</code></th>
						<td><p>&lt;#isPush description#></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>从会话列表进入：访客会话、联系人会话、群组会话</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BDChatViewController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithContactModel:withPush:" title="initWithContactModel:withPush:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithContactModel:withPush:">&ndash;&nbsp;initWithContactModel:withPush:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>联系人会话</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)initWithContactModel:(BDContactModel *)<em>contactModel</em> withPush:(BOOL)<em>isPush</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>contactModel</code></th>
						<td><p>&lt;#contactModel description#></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>isPush</code></th>
						<td><p>&lt;#isPush description#></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>联系人会话</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BDChatViewController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithGroupModel:withPush:" title="initWithGroupModel:withPush:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithGroupModel:withPush:">&ndash;&nbsp;initWithGroupModel:withPush:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>群组会话</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)initWithGroupModel:(BDGroupModel *)<em>groupModel</em> withPush:(BOOL)<em>isPush</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>groupModel</code></th>
						<td><p>&lt;#groupModel description#></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>isPush</code></th>
						<td><p>&lt;#isPush description#></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>群组会话</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">BDChatViewController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2019 bytedesk.com. All rights reserved. Updated: 2019-01-25</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>